export default function(){
    return async function(ctx,next){
        ctx.set('Access-Control-Allow-Origin','*');
        ctx.set('Access-Control-Allow-Methods','GET,POST,PUT,DELETE,OPTINOS');
        ctx.set('Access-Control-Allow-Headers','Content-Type');
        ctx.status = 200;
        await next();
    }
}